package com.zr.controller;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.zr.service.CheckApplyInfoService;
/**
 * 管理员查看是否有学生申请住宿的调配者
 * @author 洪英杰
 *
 */
public class CheckApplyInfoController extends HttpServlet{
	CheckApplyInfoService cais=new CheckApplyInfoService();
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		doPost(req, resp);
	}
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		// TODO Auto-generated method stub
		//设置请求和响应的字符编码
		req.setCharacterEncoding("utf8");
		resp.setCharacterEncoding("utf8");
		
		HttpSession session=req.getSession();
			
		PrintWriter pw=resp.getWriter();
		pw.write(cais.dormInfo().toString());
		

	}
}
